package com.ck.ck_back.dao;

import com.ck.ck_back.pojo.LikeComment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface LikeCommentMapper {
    int deleteByPrimaryKey(Integer likeCommentId);

    int insert(LikeComment record);

    int insertSelective(LikeComment record);

    LikeComment selectByPrimaryKey(Integer likeCommentId);

    int updateByPrimaryKeySelective(LikeComment record);

    int updateByPrimaryKey(LikeComment record);

    int savelist(List<LikeComment> list);

//    根据两个id拿点赞信息
    LikeComment selectBytwo_id(int likedCommentId, String likedPostId);


//    查询这个评论的数量
    int selectcomment(int likedCommentId);
}